package com.example.demonstrate.wang.client;

import com.example.demonstrate.wang.entity.Profile;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @Author along
 * @Date 2024/6/21 0:15
 */

@FeignClient(name = "galaxy-profile")
public interface ProfileSearchClient {

    @PostMapping("/api/galaxy/profile/searchById")
    List<Profile> searchProfileByProfileId(String profileId, int pageNum, int pageSize);

    @PostMapping("/api/galaxy/profile/batchSearch")
    List<Profile> searchByCreateTime(long createTime, int pageNum, int pageSize);
}
